package com.learn.ert.service.impl;

import com.learn.ert.mapper.ErShopMapper;
import com.learn.ert.pojo.ErShopEntity;
import com.learn.ert.service.ErShopService;
import com.learn.ert.utils.PageUtils;
import com.learn.ert.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;


@Service("erShopService")
public class ErShopServiceImpl extends ServiceImpl<ErShopMapper, ErShopEntity> implements ErShopService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ErShopEntity> page = this.page(
                new Query<ErShopEntity>().getPage(params),
                new QueryWrapper<ErShopEntity>()
        );

        return new PageUtils(page);
    }

}